package com.moxi.mogublog.redis.prefix.common;


import com.moxi.mogublog.redis.prefix.base.BasePrefix;

/**
 * 模板模式:实现类[防止重复提交]-RepeatSubmitKey
 *
 * @author Lishuai
 * @version 1.0.0
 * @date 2020-04-21
 */
public class RepeatSubmitKey extends BasePrefix {

    /**
     * 有效期（秒）
     */
    public static final Integer REPEAT_EXPIRATION = 1 * 60;

    public static String REPEAT_KEY_PREFIX_STR = "repeat_data_key";

    public RepeatSubmitKey(String prefix) {
        super(prefix);
    }

    public RepeatSubmitKey(String prefix, int expireSeconds) {
        super(prefix, expireSeconds);
    }

    public static final RepeatSubmitKey REPEAT_KEY_PREFIX = new RepeatSubmitKey(REPEAT_KEY_PREFIX_STR, REPEAT_EXPIRATION);

}
